package week2

type temporary interface {
	Temporary() bool
}
func IsTemporary(err error) bool{
	te, ok := err.(temporary)
	return ok && te.Temporary()
}